<template>
  <div>
<div>
  <span v-for="(item ,index) in code5" :key="index">{{item}}
  <input v-model="lis" :value="item" type="checkbox">
</span>
</div>
<ul>
  <li v-for="(item,index) in lis" :key="index">{{item}}</li>
</ul>
</div>
</template>

<script>
export default {
 data () {
  return {
    code5:["科幻", "喜剧", "动漫", "冒险", "科技", "军事", "娱乐", "奇闻"],
    lis:[]
  }
 }
}
</script>

<style>

</style>